@charset 'utf-8';
.buycart {
    background: #f2f2f2;
    width: 100%;
    height: 100%;
    margin-bottom: .45rem;
    overflow: hidden;
    .buyhead {
        width: 100%;
        height: .48rem;
        .poshead {
            width: 100%;
            position: fixed;
            top: 0;
            background: #fff;
            z-index: 999;
            @include flexbox();
        }
        .btn {
            float: left;
        }
        .back-btn {
            width: .5rem;
            height: .48rem;
            &:after {
                content: "";
                width: 0.1rem;
                height: 0.1rem;
                position: absolute;
                top: 0.20rem;
                left: 0.21rem;
                border-bottom: 1px solid #5d5d5d;
                border-right: 1px solid #5d5d5d;
                -webkit-transform: rotate(135deg);
                transform: rotate(135deg);
            }
        }
        span {
            color: #434343;
            line-height: .48rem;
        }
        span:nth-of-type(1) {
            display: inline-block;
            @include flex();
            font-size: 16px;
            text-align: center;
        }
        .editOn {
            span:nth-of-type(1) {
                display: inline-block;
                width: .4rem;
                font-size: 14px;
                margin-right:.1rem;
            }
            span:nth-of-type(2) {
                display: inline-block;
                width: .4rem;
                font-size: 14px;
            }
        }
    }
    .buysection {
        width: 100%;
        .prodlist {
            width: 100%;
            background: #f8f8f8;
            margin-top: .1rem;
            .allprod {
                width: 100%;
                height: .45rem;
                span:nth-child(1) {
                    display: inline-block;
                    width: .21rem;
                    height: .21rem;
                    margin-top: .12rem;
                    margin-left: .15rem;
                    float: left;
                    img{
                        display: block;
                        width:.21rem;
                        height:.21rem;
                    }
                }
                span:nth-of-type(2) {
                    font-size: 14px;
                    color: #434343;
                    display: inline-block;
                    margin-top: .12rem;
                    margin-left: .1rem;
                    float: left;
                    img {
                        width: .22rem;
                        height: .22rem;
                        display: inline-block;
                    }
                }
            }
            .prodeon{
                width:100%;
                overflow-x: scroll;
            }
            .prodetail {
                width: 120%;
                background: #fff;
                position: relative;
                .delbtn{
                    background:#ca0915;
                    width:.5rem;
                    height:100%;
//                  margin-top:1rem;
                    text-align: center;
                    position: absolute;
                    top:0;
                    right:0;
                    span{
                        color:#fff;
                        display: block;
                        font-size:.16rem;
                    }
                }
                .liston {
                    width: 100%;
                    height: 1.23rem;
                    display: block;
                    @include flexbox();
                    @include border(0 0 0 1px);
                    span {
                        width: .5rem;
                        display: inline-block;
                        line-height: 1.22rem;
                        position: relative;
                        img{
                            display: block;
                            width:.21rem;
                            height:.21rem;
                            position: absolute;
                            top:.6rem;
                            right:.13rem;
                        }
                    }
                    .prodOn {
                        @include flex();
                        padding-top: .14rem;
                        .prodImg {
                            float: left;
                            display: inline-block;
                            width: .96rem;
                            height: .96rem;
                            @include border(1px);
                            img {
                                width: 100%;
                                height: 100%;
                                display: block;
                            }
                        }
                        .toTitle {
                            margin-left: 1.1rem;
                            a {
                                font-size: 14px;
                                color: #434343;
                                display: block;
                                width:1.5rem;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                                overflow: hidden;
                            }
                            p:nth-of-type(1) {
                                margin-top: .05rem;
                                font-size: 12px;
                                color: #AAAAAA;
                                width:1.5rem;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                                overflow: hidden;
                            }
                            p:nth-of-type(2) {
                                margin-top: .35rem;
                                font-size: 14px;
                                color: #ca0915;
                            }
                        }
                        .prodCount {
                            position: absolute;
                            bottom: .2rem;
                            right: .8rem;
                            div {
                                background: #eee;
                                display: inline-block;
                                width: .25rem;
                                height: .25rem;
                                font-size: 18px;
                                text-align: center;
                            }
                            input {
                                display: inline-block;
                                margin-top:.04rem;
                                margin-left: 2px;
                                width: .3rem;
                                height: .25rem;
                                border: none;
                                text-align: center;
                                background: #EEEEEE;
                            }
                        }
                        
                    }
                }
            }
        }
        .bfoot {
            width: 100%;
            height: .45rem;
            position: fixed;
            bottom: .45rem;
            background: #fff;
            border-top: solid 1px #e8e8e8;
            .alluse {
//              background: url(../assets/images/c01.png) no-repeat center;
                background-size: .21rem .21rem;
                width: .21rem;
                height: .21rem;
                display: inline-block;
                float: left;
                margin-top: .12rem;
                margin-left: .14rem;
                margin-right: .1rem;
                img{
                    display: inline-block;
                    width:.21rem;
                    height:.21rem;
                }
            }
            span:nth-of-type(2) {
                font-size: 16px;
                color: #434343;
                float: left;
                line-height: .45rem;
            }
            .totalInfo {
                display: inline-block;
                position: absolute;
                top: 0;
                right: 1.1rem;
                .jstop {
                    margin-top: .02rem;
                    height: .2rem;
                    text-align: right;
                    float: left;
                    i {
                        font-size: 16px;
                        color: #434343;
                    }
                    span {
                        font-size: 16px;
                        color: #CA0915;
                    }
                    
                }
                .jsbtm {
                    text-align: right;
                    font-size: 14px;
                    color: #999;
                }
            }
            .jiesuanBtn {
                width: 1rem;
                height: .44rem;
                background: #CA0915;
                font-size: 16px;
                color: #fff;
                text-align: center;
                line-height: .45rem;
                displaY: inline-block;
                float: right;
            }
        }
    }
    .btnon {
        background: url(../assets/images/c02.png) no-repeat;
    }
    //empty
    .emptycart {
        .empImg {
            width: 100%;
            text-align: center;
            padding: 1.5rem 0 .75rem 0;
            img {
                display: block;
                width: .675rem;
                height: .675rem;
                margin: auto;
            }
            p {
                padding-top: 0.1rem;
                color: #999;
                font-size: 14px;
            }
        }
        .gotoIndex {
            display: block;
            color: #333;
            width:2.58rem;
            height: .35rem;
            line-height: .35rem;
            background: #f2f2f2;
            border: 1px solid #999;
            font-size: 14px;
            border-radius: 0.05rem;
            text-align: center;
            margin:auto;
        }
    }
}